package com.itetchologyandenglish.home.controller.Page;

import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.RequestMapping;
import org.springframework.web.bind.annotation.RequestParam;
import org.springframework.web.servlet.ModelAndView;

@Controller
public class SupplyPageController {
    @RequestMapping("/page/supply")
    String  procurement(){
        return "supply";
    }
    @RequestMapping("/orders/supplyInformation")
    ModelAndView supplyInformation(Integer orderId,ModelAndView model){
        model.getModel().put("orderId",orderId);
        model.setViewName("supplyInformation");
        return model;
    }
    @RequestMapping("/orders/gyAddModify")
    ModelAndView gyAddModify(@RequestParam(value="orderId",required = false)Integer orderId,ModelAndView model){
        model.setViewName("gyAddModify");
        model.getModel().put("orderId",orderId);
        return model;
    }
}
